On the Subject of The Inverted Crimson Cipher

Confusion will be my epitaph...

On the module, you will see 3 screens, a keyboard, 2 arrows, and a submit button that displays the current page you’re on.

Pressing the right arrow takes you to the next page. Pressing the left arrow takes you to the previous page. There are a total of 3 pages.

Step 1: Caesar Shuffle Cipher

This step requires the encrypted word from step 2 and the two five-letter keywords from page 3. Reverse both keywords.

Perform the following steps for each letter of both keywords:

  • Place a pivot after the Xth letter in the encrypted word where X is equal to 5, minus the current letter of the first key’s alphabetic position modulo 5. Swap the 2 strings to the left and right of the pivot.
  • Shift the now-right substring backwards in the alphabet by the current letter of the second key. Remove the pivot.

Example

Encrypted Word: NBDXQG
Keyword 1: ULCER → RECLU
Keyword 2: KNOBS → SBONK

NB.DXQG → DXQG.NB → DXQG.UI → DXQGUI

DXQGU.I → I.DXQGU → I.BVOES → IBVOES

IB.VOES → VOES.IB → VOES.TM → VOESTM

VOE.STM → STM.VOE → STM.HAQ → STMHAQ

STMH.AQ → AQ.STMH → AQ.HIBW → AQHIBW

New Encrypted Word: AQHIBW

Step 2: Dual Triplex Reflector Cipher

This step requires the three keywords on page 2, as well as the first encrypted word. The first two keywords will be used to construct two triplex reflectors, while the third will be used to shuffle the reflectors after each encryption step.

To construct a triplex reflector, make a string by concatenating the alphabet with the keyword used, removing duplicates, and lay the string out in a 3×9 grid with a hole in the center. The triplex reflector made from the first keyword is the top reflector, and the one made from the second is the bottom reflector.

For each letter of the encrypted word, find it in the bottom reflector, then find the letter in the same position in the top reflector, which is your first intermediate letter. Find that letter in the bottom reflector, then find the letter in that position in the top reflector. Find that letter in the bottom reflector, which is your second intermediate letter, then find the corresponding letter in the decrypted word in the same position in the top reflector.

Note down the columns and rows you found the intermediate letters in, bearing in mind that the first intermediate letter was found in the top reflector and the second found in the bottom reflector. Before decrypting the next letter, permute both reflectors as follows.

  • Convert the alphabetic position of the current letter of the third key into ternary.
  • If you are at an odd step, shift the row the second intermediate letter was found in to the left by the two most significant digits taken as a ternary number, and shift the column the first intermediate letter was found in down by the least significant digit.
  • If you are at an even step, shift the column the second intermediate letter was found in down by the most significant digit, and the row the first intermediate letter was found in to the left by the two least significant digits taken as a ternary number.
  • Do not move the hole when shifting the reflectors.

Example

Encrypted Word: AQHIBW
Keyword 3: LOCUS

ALGEBCDFH
IJKM NOPQ
RSTUVWXYZ
---------
RESIGNDAB
CFHJ KLMO
PQTUVWXYZ

A → F → J → M
L → 12 → 110

ALGEBCDFH
IJKM NOPQ
RSTUVWXYZ
---------
RESIGNDAB
KLMO CFHJ
PQTUVWXYZ

Q → S → G → B
O → 15 → 120

ALGEBCDFH
IJKM NOPQ
XYZRSTUVW
---------
RESIVNDAB
KLMO CFHJ
PQTUGWXYZ

H → P → X → U
C → 3 → 010

ALGEBCDFH
IJKM NOPQ
XYZRSTUVW
---------
RESIVNDAB
KLMO CFHJ
QTUGWXYZP

I → E → L → J
U → 21 → 210

EBCDFHALG
IJKM NOPQ
XYZRSTUVW
---------
RLSIVNDAB
KTMO CFHJ
QEUGWXYZP

B → G → R → E
S → 19 → 201

EBCDFHALW
IJKM NOPG
XYZRSTUVQ
---------
DABRLSIVN
KTMO CFHJ
QEUGWXYZP

W → S → H → P

Step 3: Transposed Halved Polybius Cipher

This step uses the encrypted word as well as the two keys on page 1; known as the fractionation key and the transposition key respectively.

To begin, take the fractionation key and enter it into the left half of the Halved Polybius Square in reading order, removing duplicates. Add the rest of the alphabet letter by letter, moving to the right half after running out of letters. The Halved Polybius Square is laid out like the diagram below.

1234512345
1
2
3####
LR

Convert each letter of the encrypted word into three coordinates and write them out top to bottom in the order Half, Row, Column and to the right of any previous coordinates.

Then, for each letter in reverse order of the transposition key, find it in the Halved Polybius Square and perform the following operation on the 6×3 matrix of coordinates you created.

  • If you are at an odd step in the process, shift the row of that letter’s coordinate in the matrix to the right by the column coordinate.
  • If you are at an even step, start at the column of the matrix equal to the current key letter’s column coordinate, then continue counting columns to the right equal to the row coordinate, wrapping around if necessary. Swap the two columns received by this procedure.
  • When doing this, do not move threes in the second row and fours and fives in the third row.

Read off each column of the resulting matrix and index into the Halved Polybius Square to obtain your decrypted word.

Example

Encrypted Word: MBUJEP
Transposition Key: STYLE

1234512345
1MAXIBLNOPQ
2CDEFGRSTUV
3HJK##WYZ##
LR
LLRLLR
112321
154234
LLRLLR
221311
154234
LLRLLR
221311
514234
LLRLLR
221311
524314
LLLLRR
221311
521344
LLLLRR
112321
521344

Decrypted Word: BACKUP

Once completed, the result is your decrypted word, which you can now submit. Once you start typing, all the screens will go black and the bottom screen will show what you are typing.

To clear it, just click one of the arrows. This goes to one of the pages and clears any input you put in. It will not let you go over 6 letters on input.

Once you are satisfied with your input, press the button labeled "SUB" to submit your answer. On a strike, the module will go back to the first page of the module, but it does not regenerate.